package cn.iocoder.yudao.module.reading.dal.dataobject.favorite;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

/**
 * 用户收藏 DO
 *
 * @author 芋道源码
 */
@TableName("user_favorites")
@KeySequence("user_favorites_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserFavoriteDO extends BaseDO {

    /**
     * 收藏ID
     */
    @TableId
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 收藏类型：book_set-绘本集，book-绘本，audio-音频
     */
    private String favoriteType;
    /**
     * 收藏对象ID
     */
    private Long targetId;
    /**
     * 收藏备注
     */
    private String remark;

}
